just return something in the function.
i.e. before you got logs for both
def task1():
..do stuff
def task2():
..do stuff
return 1
now you just have to return something to all functions you need the output
of, so using the previous example, just turn task1() to something that
returns a value
def task1():
..do stuff
return 1
On Wednesday, October 10, 2012 12:52:30 PM UTC+2, David Marko wrote:
>
> I can see the following note in WEB2py Book:
>
>> "NB: scheduler_run records will be created as before for *FAILED*, *
>> TIMEOUT* and *STOPPED* tasks's statuses."
>
>
> Is there a way how to force to log(create scheduler_run entry) even
> for succesfull run? Sometimes one need to gather some information using
> simple print statement about the run and would be nice to see it in this
> run entry.
>
> Or could this be something we could define for each task differently? [x]
> create log for every run
>
> Thanks for any hint .....
>
--